package com.example.software.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.software.utils.PageUtils;
import com.example.software.utils.Query;

import com.example.software.dao.ClinicDao;
import com.example.software.entity.ClinicEntity;
import com.example.software.service.ClinicService;


@Service("clinicService")
public class ClinicServiceImpl extends ServiceImpl<ClinicDao, ClinicEntity> implements ClinicService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ClinicEntity> page = this.page(
                new Query<ClinicEntity>().getPage(params),
                new QueryWrapper<ClinicEntity>()
        );

        return new PageUtils(page);
    }

}